﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.Infrastructure.Interfaces
{
    public interface IBaseRepository<T> where T : class
    {
        int Add (T entity);
        Task<int> AddAsync (T entity);  
        int Update (T entity);
        Task<int> UpdateAsync (T entity);
        IQueryable<T> GetAll ();

        int AddRange(List<T> entities);

        int Del(T entity);

        Task<int> DelRang(List<T> entity);

    }
}
